import turtle

# n=3
# turtle.forward(100*n)
# turtle.right(144)
# turtle.forward(100*n)
# turtle.right(144)
# turtle.forward(100*n)
# turtle.right(144)
# turtle.forward(100*n)
# turtle.right(144)
# turtle.forward(100*n)

fill_color = input("角星填充颜色(gold, yellow, pink)？")
side_num = int(input("想几角星？"))  # 9
side_length = int(input("角星边长是多小？"))  # 300
# fill_color = 'yellow'
# side_num = 5
# side_length = 200
side_angle = 180 - 180 / side_num
turtle.speed('fastest')
turtle.begin_fill()
for side in range(side_num):
    if side % 3 == 0:
        side_color = 'blue'
    elif side % 3 == 1:
        side_color = 'green'
    else:
        side_color = 'red'
    turtle.forward(side_length)
    turtle.color(side_color, fill_color)
    turtle.right(side_angle)
turtle.end_fill()
turtle.done()
